<template>
  <div class="container">
    <el-dialog
      title="店铺订单详情"
      :visible.sync="particularDialog.centerDialogVisible"
      @open="getData"
      @close="confirm"
      width="1200px"
      center
    >
      <el-table
        :data="tableData"
        border
        style="width: 100%"
        empty-text="暂无数据"
      >
        <el-table-column
          prop="name"
          label="商品名称"
          align="center"
        ></el-table-column>
        <el-table-column
          prop="price"
          label="价格"
          align="center"
          width="150px"
        ></el-table-column>
        <el-table-column
          prop="count"
          label="数量"
          align="center"
          width="150px"
        ></el-table-column>
        <el-table-column
          prop="bos_qty"
          label="箱数"
          align="center"
          width="150px"
        ></el-table-column>
        <el-table-column
          prop="rk_spec"
          label="规格"
          align="center"
          width="150px"
        ></el-table-column>
        <el-table-column
          prop="unit"
          label="单位"
          align="center"
          width="150px"
        ></el-table-column>
        <el-table-column
          prop="produce_date"
          label="生产日期"
          align="center"
          width="150px"
        ></el-table-column>
        <el-table-column
          prop="shelf_life"
          label="保质期(天)"
          align="center"
          width="150px"
        ></el-table-column>
      </el-table>
    </el-dialog>
  </div>
</template>
<script>
import { getBuyOrderGoods } from "@/api/putStorage/paySuperPurchaseList";
export default {
  props: {
    particularDialog: Object,
  },
  data() {
    return {
      tableData: [],
      formData: {},
    };
  },
  created() {},
  methods: {
    //关闭
    confirm() {
      this.particularDialog.centerDialogVisible = false;
    },
    // 获取数据
    getData() {
      let data = {
        id: this.particularDialog.id,
      };
      getBuyOrderGoods(data).then((res) => {
        if (res.code == 0) {
          this.tableData = res.data;
        }
      });
    },
  },
};
</script>
<style scoped>
.pagination {
  text-align: right;
  padding: 10px;
  background-size: cover;
}
.title {
  text-align: center;
  line-height: 40px;
  font-size: 16px;
  font-weight: bold;
}
</style>